package com.example.order.service.impl;

import com.example.order.mapper.OrderMapper;
import com.example.order.service.OrderMybatisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Order;

@Service
public class OrderMybatisServiceImpl implements OrderMybatisService {

    @Autowired
    OrderMapper orderMapper;

    @Override
    public int createorder(Order order) {
        return orderMapper.insertSelective(order);
    }

    @Override
    public Order getOrderByOrderNumber(String orderNumber) {
        return orderMapper.getOrderByOrderNumber(orderNumber);
    }


//
//    @Override
//    public int deleteOrder(String id) {
//        return orderDao.deleteOrder(id);
//    }
//
//    @Override
//    public int updateOrder(Order order) {
//        return orderDao.updateOrder(order);
//    }
}
